import {Api} from './__generated/api'
import request from "@/utils/request";
let api = new Api(({uri,body, method})=>{
    return request({
        url: uri,
        method,
        data: body
    })
});

export default api
